import { req } from '../utils/req.js';

export default {
  //获取名片首页信息
  getIndex(param) {
    return req.post("/Api6.Company/index", param)
  },
  //获取名片列表
  getList(param) {
    return req.post("/Api8.Company/getList", param)
  },
  //编辑名片
  edit(param) {
    return req.post("/api8.company/saveCompany", param)
  },
  //获取详情
  getDetail(param){
    return req.post("/Api7.Company/getUserCompany", param)
  },
  //获取TA人详情
  getOtherDetail(param) {
    return req.post("/Api7.Company/getCompanyByUid", param)
  },
  //获取分类
  getCategoryList(param) {
    return req.post(" /Api.Companycategory/getAllTree",param)
  },
  //关注名片
  addFollow(param) {
    return req.post("/Api2.Star/addStar", param)
  },
  //取消关注名片
  delFollow(param) {
    return req.post("/Api2.Star/delStar", param)
  },
  //点赞名片
  like(param) {
    return req.post("/Api6.Company/like", param)
  },
  //获取VIP列表
  getVipList(param) {
    return req.post("/Api7.company/getVipRule", param)
  },
  //加入VIP
  joinVip(param) {
    return req.post("/Api7.Company/join_vip", param)
  },
  //看过列表
  getLookList(param) {
    return req.post("/api8.company/starMeList", param)
  },
  //我关注列表
  getMeCollectList(param) {
    return req.post("/api8.company/meCollectList", param)
  },
  //关注我列表
  getCollectMeList(param) {
    return req.post("/api8.company/collectMeList", param)
  },
  //私信列表
  getCommentList(param) {
    return req.post("/api8.chat/getAllList", param)
  },
  //点赞我列表
  getLikeMeList(param) {
    return req.post("/api8.company/likeMeList", param)
  },
  //我点赞列表
  getMeLikeList(param) {
    return req.post("/api8.company/meLikeList", param)
  },
  //置顶规则列表
  getRuleList(param) {
    return req.post("/Api6.Company/getRulesList", param)
  },
  //置顶规则列表
  stick(param) {
    return req.post("/Api6.Company/top", param)
  }
 
}